AL SET SOUND SPEED

This function will set the velocity of a sound. Normally, a sounds velocity is its old position subtracted from its new position (newXYZ - oldXYZ = velocityXYZ). Using AL MOVE SOUND TO to position a sound will automatically calculate the velocity for you. However, this command gives you control over the sound's velocity which may be useful in certain situations (e.g. a ship going to warp or a drugged character) where you want the sound source to appear, or sound as though it is moving faster/slower than it actually is.

  Syntax
AL SET SOUND VELOCITY soundNumber, x, y, z
  Parameters
soundNumber
Integer
The sound number.
x
Float
The X velocity of the sound.
y
Float
The Y velocity of the sound.
z
Float
The Z velocity of the sound.

  Returns

This function does not return a value.

  See also

DarkAL Functions Menu